// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Commands.proto
package unit.test.proto;
public final class Commands {
private Commands() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static final class WorkerCommand extends
com.google.protobuf.GeneratedMessage {
// Use WorkerCommand.newBuilder() to construct.
private WorkerCommand() {
initFields();
}
private WorkerCommand(boolean noInit) {}
private static final WorkerCommand defaultInstance;
public static WorkerCommand getDefaultInstance() {
return defaultInstance;
}
public WorkerCommand getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return unit.test.proto.Commands.internal_static_unit_test_proto_WorkerCommand_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return unit.test.proto.Commands.internal_static_unit_test_proto_WorkerCommand_fieldAccessorTable;
}
// required uint64 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private boolean hasId;
private long id_ = 0L;
public boolean hasId() { return hasId; }
public long getId() { return id_; }
// required string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private boolean hasName;
private java.lang.String name_ = "";
public boolean hasName() { return hasName; }
public java.lang.String getName() { return name_; }
// required string data = 3;
public static final int DATA_FIELD_NUMBER = 3;
private boolean hasData;
private java.lang.String data_ = "";
public boolean hasData() { return hasData; }
public java.lang.String getData() { return data_; }
private void initFields() {
}
public final boolean isInitialized() {
if (!hasId) return false;
if (!hasName) return false;
if (!hasData) return false;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasId()) {
output.writeUInt64(1, getId());
}
if (hasName()) {
output.writeString(2, getName());
}
if (hasData()) {
output.writeString(3, getData());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasId()) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, getId());
}
if (hasName()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(2, getName());
}
if (hasData()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getData());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static unit.test.proto.Commands.WorkerCommand parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static unit.test.proto.Commands.WorkerCommand parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(unit.test.proto.Commands.WorkerCommand prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
private unit.test.proto.Commands.WorkerCommand result;
// Construct using unit.test.proto.Commands.WorkerCommand.newBuilder()
private Builder() {}
private static Builder create() {
Builder builder = new Builder();
builder.result = new unit.test.proto.Commands.WorkerCommand();
return builder;
}
protected unit.test.proto.Commands.WorkerCommand internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new unit.test.proto.Commands.WorkerCommand();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return unit.test.proto.Commands.WorkerCommand.getDescriptor();
}
public unit.test.proto.Commands.WorkerCommand getDefaultInstanceForType() {
return unit.test.proto.Commands.WorkerCommand.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public unit.test.proto.Commands.WorkerCommand build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private unit.test.proto.Commands.WorkerCommand buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public unit.test.proto.Commands.WorkerCommand buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
unit.test.proto.Commands.WorkerCommand returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof unit.test.proto.Commands.WorkerCommand) {
return mergeFrom((unit.test.proto.Commands.WorkerCommand)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(unit.test.proto.Commands.WorkerCommand other) {
if (other == unit.test.proto.Commands.WorkerCommand.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
setName(other.getName());
}
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 8: {
setId(input.readUInt64());
break;
}
case 18: {
setName(input.readString());
break;
}
case 26: {
setData(input.readString());
break;
}
}
}
}
// required uint64 id = 1;
public boolean hasId() {
return result.hasId();
}
public long getId() {
return result.getId();
}
public Builder setId(long value) {
result.hasId = true;
result.id_ = value;
return this;
}
public Builder clearId() {
result.hasId = false;
result.id_ = 0L;
return this;
}
// required string name = 2;
public boolean hasName() {
return result.hasName();
}
public java.lang.String getName() {
return result.getName();
}
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasName = true;
result.name_ = value;
return this;
}
public Builder clearName() {
result.hasName = false;
result.name_ = getDefaultInstance().getName();
return this;
}
// required string data = 3;
public boolean hasData() {
return result.hasData();
}
public java.lang.String getData() {
return result.getData();
}
public Builder setData(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasData = true;
result.data_ = value;
return this;
}
public Builder clearData() {
result.hasData = false;
result.data_ = getDefaultInstance().getData();
return this;
}
// @@protoc_insertion_point(builder_scope:unit.test.proto.WorkerCommand)
}
static {
defaultInstance = new WorkerCommand(true);
unit.test.proto.Commands.internalForceInit();
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:unit.test.proto.WorkerCommand)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_unit_test_proto_WorkerCommand_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_unit_test_proto_WorkerCommand_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\016Commands.proto\022\017unit.test.proto\"7\n\rWor" +
"kerCommand\022\n\n\002id\030\001 \002(\004\022\014\n\004name\030\002 \002(\t\022\014\n\004" +
"data\030\003 \002(\t"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_unit_test_proto_WorkerCommand_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_unit_test_proto_WorkerCommand_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_unit_test_proto_WorkerCommand_descriptor,
new java.lang.String[] { "Id", "Name", "Data", },
unit.test.proto.Commands.WorkerCommand.class,
unit.test.proto.Commands.WorkerCommand.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
}
public static void internalForceInit() {}
// @@protoc_insertion_point(outer_class_scope)
}